package cn.iocoder.yudao.module.biz.controller.admin.invoice.domain;

import cn.iocoder.yudao.framework.excel.core.util.poi.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 发票内容字典表
 * @TableName san_biz_invoice_content_dict
 */
@TableName(value ="san_biz_invoice_content_dict")
@Data
@Schema(description = "管理后台 - 业务拓展-发票管理-发票内容字典表")
public class SanBizInvoiceContentDict implements Serializable {

    @Schema(description = "页码，从 1 开始", requiredMode = Schema.RequiredMode.REQUIRED,example = "1")
    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码最小值为 1")
    @TableField(exist = false)
    private Integer pageNo = 1;

    @Schema(description = "每页条数，最大值为 100", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
    @NotNull(message = "每页条数不能为空")
    @Min(value = 1, message = "每页条数最小值为 1")
    @Max(value = 100, message = "每页条数最大值为 100")
    @TableField(exist = false)
    private Integer pageSize = 10;

    /**
     * 主键ID
     */
    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 品名
     */
    @Excel(name = "品名")
    @Schema(description = "品名")
    private String name;

    /**
     * 型号规格
     */
    @Excel(name = "型号规格")
    @Schema(description = "型号规格")
    private String model;

    /**
     * 单位
     */
    @Excel(name = "单位")
    @Schema(description = "单位")
    private String unit;

    /**
     * 数量
     */
    @Excel(name = "数量")
    @Schema(description = "数量")
    private BigDecimal quantity;

    /**
     * 单价
     */
    @Excel(name = "单价")
    @Schema(description = "单价")
    private BigDecimal unitPrice;

    /**
     * 金额
     */
    @Excel(name = "金额")
    @Schema(description = "金额")
    private BigDecimal amount;

    /**
     * 创建者
     */
    @Schema(description = "创建者")
    private String creator;

    /**
     * 更新时间
     */
//    @Schema(description = "品名")
    private Date updatedAt;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 更新者
     */
    @Schema(description = "更新者")
    private String updater;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private Date updateTime;

    /**
     * 是否删除
     */
    @Schema(description = "是否删除")
    private Boolean deleted;

    /**
     * 租户ID
     */
    @Schema(description = "租户ID")
    private Long tenantId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}